Refactor: introduce transformImport to replace swc-plugin-import#12689
Refactor: introduce transformImport to replace swc-plugin-import#12689
Conversation
✅ Deploy Preview for rspack-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📦 Binary Size-limit
🎉 Size decreased by 318.00KB from 47.87MB to 47.56MB (⬇️0.65%) |
Rsdoctor Bundle Diff AnalysisFound 5 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 react-10kPath:
📦 Download Diff Report: react-10k Bundle Diff 📁 react-5kPath:
📦 Download Diff Report: react-5k Bundle Diff 📁 romePath:
📦 Download Diff Report: rome Bundle Diff Generated by Rsdoctor GitHub Action |
Merging this PR will not alter performanceSummary
Comparing Footnotes
|
|
@chenjiahan @ityuany what do you think ? |
Summary
Introduce
rspackExperiments.transformImport, it has the same capability asrspackExperiments.import, but with more easy-to-use API.See output here, only the first item has specifier, the rest items are just render as normal
import '{{source}}'Example:
Related links
Checklist